#NoEnv
;~ #Warn

scite := GetSciTEInstance()
if !scite
{
	MsgBox, 16, SciTE properties editor, Can't find SciTE!
	ExitApp
}

scite_hwnd := scite.GetSciTEHandle()

WinClose, ahk_id %scite_hwnd%
WinWaitClose,,, 10
if !ErrorLevel
	Run, "%A_ScriptDir%\..\SciTE.exe"
ExitApp
return